package com.ruoyi.mall.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Description TODO
 * @Author 李琪
 * @Date 2025/5/26 16:45
 **/
public class DtsCouponUser {
    private Long id;
    /** 用户ID*/
    private Long userId;
    /**优惠券ID*/
    private Long couponId;
    /**使用状态, 如果是0则未使用；如果是1则已使用；如果是2则已过期；如果是3则已经下架；*/
    private Long status;
    /**使用时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date usedTime;
    /**领取时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /**过期时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    /**订单编号*/
    private String orderSn;
    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date addTime;
    /**更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    /**逻辑删除*/
    private Integer deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Date getUsedTime() {
        return usedTime;
    }

    public void setUsedTime(Date usedTime) {
        this.usedTime = usedTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
